package com.wtwd.device.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wtwd.device.model.entity.HealthType;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author mjy
 * @since 2023-08-16
 */
public interface AppHealthTypeService extends IService<HealthType> {


    String HEATH_TYPE_KEY_PREFIX = "heathType_";

    String DEFAULT_LANGUAGE_TYPE = "en";

    String UNTRANSLATED_LANGUAGE="zh";

    /**
     * 分页查询健康类型
     * <p>
     * <p>
     * 根据语言类型翻译语言
     *
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<HealthType> queryPage(Integer pageNo, Integer pageSize, String languageType) throws Exception;

    /**
     * 翻译(根据语言进行转换----健康类型的名称)
     *
     * @return
     */
    List<HealthType> translatorsTypeLanguage(List<HealthType> healthTypes, String languageType) throws Exception;


}
